var loadWin = Titanium.UI.createWindow({
	top: 0,
	width: 320,
	height: 480,
	opacity: 1,
	backgroundImage: 'media/images/loading.png',
	zIndex: 9999
})
	
var errorMSG = function(errMSG){
	Ti.UI.createAlertDialog({
			title: "大魔术师",
	        message: errMSG
	}).show();
}
	
function checkNetwork() {
    if(Titanium.Network.online){
    	return true;
    }else{
    	errorMSG("请检查您的网络连接...");
    }
}